<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="ajax" uri="javawebparts/ajaxparts/taglib"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
	<head>
			<script type='text/javascript'>
				var inival=0; // Initialise starting element number

				// Call this function to add textbox
				function addTextBox(vArea, txtName)
				{
					var newArea = add_New_Element(vArea);
					var htcontents = "<a href='javascript: removeTextBox(" + inival + ", \"" + vArea + "\")'>-</a><input type='text' class='textfield' name='" + txtName + "[]'/>";
					document.getElementById(newArea).innerHTML = htcontents; // You can any other elements in place of 'htcontents'
				}

				function removeTextBox(iVal, vArea)
				{
					var ni = document.getElementById(vArea);
					var newdiv = document.getElementById('my'+iVal+'Div');
					ni.removeChild(newdiv);
				}

				function add_New_Element(vArea) {
					inival=inival+1; // Increment element number by 1
					var ni = document.getElementById(vArea);
					var newdiv = document.createElement('div'); // Create dynamic element
					var divIdName = 'my'+inival+'Div';
					newdiv.setAttribute('id',divIdName);
					ni.appendChild(newdiv);
					return divIdName;
				}

			</script>

			<script type="text/javascript">
				jQuery(function($) {
					$("#vtrColorPicker").attachColorPicker();
					$("#vtrColorPicker2").attachColorPicker();
				});

				function ajaxFileUpload()
				{
					$("#loading")
					.ajaxStart(function(){
						$(this).show();
					})
					.ajaxComplete(function(){
						$(this).hide();
					});

					$.ajaxFileUpload
					(
						{
							url:'ajax/getCountry.htm',
							secureuri:false,
							fileElementId:'fileToUpload',
							dataType: 'json',
							success: function (data, status)
							{
								if(typeof(data.error) != 'undefined')
								{
									if(data.error != '')
									{
										alert(data.error);
									}else
									{
										alert(data.msg);
									}
								} else {
									alert('Else');
								}
							},
							error: function (data, status, e)
							{
								alert(e);
							}
						}
					)
					return false;
				}
			</script>

			<script type="text/javascript" language="JavaScript">


				tinyMCE.init({
					// General options
					mode : "exact",
    				elements : "items.description",
					theme : "advanced"
				});


				function toogleEditorMode(sEditorID) {
					var tinyMCEmode = eval(document.getElementById('tinyMCEmode').value);
				    try {
				        if(tinyMCEmode) {
				            tinyMCE.removeMCEControl(tinyMCE.getEditorId(sEditorID));
				            document.getElementById('tinyMCEmode').value = 'false';
				            document.getElementById('editorMsg').innerHTML = 'Switch to visual html editor';
				        } else {
				        	document.getElementById('tinyMCEmode').value = 'true';
				            tinyMCE.addMCEControl(document.getElementById('items.description'), sEditorID);
				            document.getElementById('editorMsg').innerHTML = 'Switch to normal text editor';
				        }
				    } catch(e) {
				        //error handling
				    }
				}
		</script>
	</head>
	<body>
		<input type="hidden" id="tinyMCEmode" name="tinyMCEmode" value="true">

<s:form action="createProfile.htm" enctype="multipart/form-data">

<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tbody>
		<tr>
			<td>
				<div class="blue-text16" style="margin: 0px 0px 0px 0px">
					<s:text name="createprofile.header" />
				</div>
				<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
				<div style="margin: 0px 0px 12px 0px">
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody>
						<tr>
							<td>
								<s:fielderror cssClass="error-text" />
								<s:actionerror cssClass="error-text" />
							</td>
						</tr>
						<tr>
							<td>
								<!--Error-->
								<table cellpadding="0" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<s:text name="addCompanyProfileToFavorite.category" />
											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr >
															<td valign="top" class="error-text">
																<div id="parentDiv"><s:text name="createprofile.para1" /></div>
															</td>
														</tr>
													</tbody>
												</table>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text"></td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">

															<table border="0" cellspacing="0" cellpadding="0">
																<tr>
																	<td class="btn-grey-left1"></td>
																	<td class="btn-grey-middle1 ">
																		<input type="button" onclick="PPPCC=window.open('<%= basePath + "ajax/showDynamicTreeAction.htm" %>','CurrencyConverter','width=600,height=400,scrollbars=yes,resizable=false');PPPCC.focus()" value="Select category" class="submit-btn-common">
																	</td>
																	<td class="btn-grey-right1"></td>
																</tr>
															</table>

															</td>
															<td valign="top" width="20">
																<font color="green" size="2"> *</font>															</td>

															<td valign="top" class="common-text">
															<s:if test="#attr.categoryFees[0].companyProfile == 2">
																<s:text name="addSellAuctionItem.category.para2">
																	<s:param name="value" value="#attr.categoryFees[1].companyProfile" />
																	<s:param name="value" value="#attr.categoryFees[0].companyProfile" />
																</s:text>
															</s:if>
															<s:elseif test="#attr.categoryFees[0].companyProfile == 3">
																<s:text name="addSellAuctionItem.category.para3">
																	<s:param name="value" value="#attr.categoryFees[1].companyProfile" />
																	<s:param name="value" value="#attr.categoryFees[2].companyProfile" />
																	<s:param name="value" value="#attr.categoryFees[0].companyProfile" />
																</s:text>
															</s:elseif>
															<s:else>
																<s:text name="addSellAuctionItem.category.para">
																	<s:param name="value" value="#attr.categoryFees[1].companyProfile" />
																	<s:param name="value" value="#attr.categoryFees[2].companyProfile" />
																	<s:param name="value" value="#attr.categoryFees[3].companyProfile" />
																	<s:param name="value" value="#attr.categoryFees[0].companyProfile" />
																</s:text>
															</s:else>
															</td>
														</tr>
													</tbody>
											  </table>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="overview.para3" /></b>											</td>

											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:textfield name="items.title" cssClass="textfield" size="30" maxlength="80" theme="simple" />
															</td>
															<td valign="top" width="20">
																<font color="green" size="2"> <s:text name="createprofile.star" /></font>															</td>
															<td valign="top" class="common-text">
																<s:property value="#attr.listingOptions.maximumTitleSizeInBytes" /> <s:text name="shop.char" />															</td>
														</tr>
													</tbody>
											  </table>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createAdvertise.subtitle" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="274">
																<s:textfield name="items.subTitle" cssClass="textfield" maxlength="250" theme="simple" />
															</td>
															<td valign="top" class="common-text">
																<s:if test="#attr.optionsFees[5].companyProfile != 0" ><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[5].companyProfile" /></font></s:if>
																<s:text name="createprofile.para2">
																	<s:param name="value" value="#attr.listingOptions.shortTitleSize"></s:param>
																</s:text>
															</td>
														</tr>
													</tbody>
											  </table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createAdvertise.bold" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="274">
																<s:checkbox name="items.bold" cssClass="cb" theme="simple" />
															</td>
															<td valign="top" class="common-text">
																<s:if test="#attr.optionsFees[6].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[6].companyProfile" /></font></s:if> <s:text name="createprofile.para3" />														</td>
														</tr>
													</tbody>
											  </table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="shop.tcolor" /></b>											</td>
											<td valign="top">
												<div id="colorPickerDiv"
													style="position: absolute; visibility: hidden;">												</div>

												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="274">
																<table border="0" cellpadding="0" cellspacing="0"
																	width="250">
																	<tbody>
																		<tr>
																			<td>
																				<s:textfield cssClass="textfield" id="vtrColorPicker" readonly="true"
																										name="items.colored" size="7" value="%{items.colored}" theme="simple" />																			</td>
																		</tr>
																		<tr>

																		</tr>
																	</tbody>
																</table>															</td>
															<td valign="top" class="common-text">
																<s:if test="#attr.optionsFees[7].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[7].companyProfile" /></font></s:if> <s:text name="createprofile.para4" />															</td>
														</tr>
													</tbody>
											  </table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="shop.bgcolor" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="274">
																<select name="items.bgColor" size="1" class="textfield">
																<option value=""></option>
																<s:set var="tmpbgColors" value="#attr.listingOptions.posibleItemBacgroundColors" />
																<% String[] bgColors = pageContext.getAttribute("tmpbgColors").toString().split("\\|"); %>
															    <% for(String bgColor : bgColors) { %>
															      	<option value="<%= bgColor %>" style="background-color: <%= bgColor %>;"><%= bgColor %></option>
															    <% } %>
																</select>														</td>

															<td valign="top" class="common-text">
																<s:if test="#attr.optionsFees[8].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[8].companyProfile" /></font></s:if> <s:text name="createprofile.para5" />														</td>
														</tr>
													</tbody>
											  </table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createAdvertise.description" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">

													<tbody>
														<tr>
															<td valign="top" width="250">
																<a href="#" onclick="toogleEditorMode('items.description')"><div id="editorMsg">Switch to normal text editor</div></a>
																<input name="EditorValue" value="0" type="hidden">														  </td>
															<td valign="top" width="20">
																<font color="green" size="2"> <s:text name="createprofile.star" /></font>															</td>
															<td valign="top" class="common-text">
															<s:text name="createprofile.para7">
																<s:param name="value" value="#attr.listingOptions.maximumDescriptionSizeInBytes" />
															</s:text>
														</td>
														</tr>
													</tbody>
											  </table>											</td>
										</tr>

										<tr>
											<td width="15%" align="right" valign="top" class="search-text">											</td>
											<td valign="top">
												<table cellpadding="4" cellspacing="0" width="100%">

													<!--EditData-->
													<!--CopyData-->
													<tbody>
														<tr>
															<td valign="top">
																<s:textarea theme="simple" id="items.description" name="items.description" rows="12" cols="80" cssStyle="width: 100%;"/>
															</td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>

										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="shop.homepage" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="274">
																<s:textfield name="items.homePage" cssClass="textfield" theme="simple" />
															</td>
															<td valign="top" class="common-text">
																<s:if test="#attr.optionsFees[16].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[16].companyProfile" /></font></s:if> <s:text name="createprofile.para8" />															</td>
														</tr>
													</tbody>
											  </table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.language" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:select theme="simple" size="1" list="#attr.languages" listKey="languageCode" listValue="%{getText('lang_' + languageCode)}" name="items.itemLanguage.languageCode" cssClass="textfield"></s:select>															</td>

															<td valign="top" width="20">
																<font color="green" size="2"> <s:text name="createprofile.star" /></font>															</td>
															<td valign="top" class="common-text">
																<s:text name="createprofile.para9" />															</td>
														</tr>
													</tbody>
											  </table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="addCompanyProfileToFavorite.location" /></b>											</td>

											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="274">															</td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="overview.para6" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>

															<td valign="top" width="250">
																<s:select theme="simple" cssClass="textfield"
																	headerValue="Select Region" headerKey="0"
																	name="items.locationCategoriesByRegion.categoryId"
																	value="%{region.categoryId}" id="region"
																	list="regionList" listKey="categoryId" listValue="categoryName"></s:select>
																<ajax:event ajaxRef="CommonForm/showCountryChange" />														</td>
															<td valign="top" width="20">
																<font color="green" size="2"> *</font>															</td>

															<td valign="top"></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="overview.para7" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>

															<td valign="top" width="250">
																<select class="textfield"
																	name="items.locationCategoriesByCountry.categoryId" id="country"></select>
																<ajax:event ajaxRef="CommonForm/showStateChange" />														</td>
															<td valign="top" width="20">
																<font color="green" size="2"> *</font>															</td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="overview.para8" /></b>											</td>

											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<select name="items.locationCategoriesByState.categoryId" class="textfield" />														</td>
															<td valign="top" width="20">
																<font color="green" size="2"> <s:text name="createprofile.star" /></font>															</td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>

										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="shop.zipcode" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<table border="0" cellpadding="0" cellspacing="0"
																	width="250">
																	<tbody>
																		<tr>
																			<td width="60">
																				<s:textfield name="items.shipZip" cssClass="textfield" size="20" theme="simple" />
																			</td>
																			<td width="4"></td>
																			<td width="186" nowrap="nowrap">
																				<s:textfield name="items.city" cssClass="textfield" size="50" theme="simple" />
																			</td>
																		</tr>
																	</tbody>
																</table>															</td>
															<td valign="top" width="20">
																<font color="green" size="2"> <s:text name="createprofile.star" /></font>															</td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="overview.para4" /></b>											</td>

											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:textfield name="items.shipStreet" cssClass="textfield" size="50" theme="simple" />
															</td>
															<td valign="top" width="20"></td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>

											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.type" /></b>											</td>
											<td valign="top"><table cellpadding="1" cellspacing="0" width="100%">
                                              <tbody>

                                              <s:iterator status="rowStatus" value="businessTypesList" var="businessType">
												<s:if test="#rowStatus.index % 2 == 0">
													<tr>
												</s:if>
														<td width="50%" class="common-bold-text"><s:checkbox name="businessTypes" value="%{businessType.optionId}" theme="simple"  />
                                                    	&nbsp;<s:property value="name" /> </td>
												<s:if test="#rowStatus.count % 2 == 0 || #rowStatus.last">
												</s:if>
                                              </s:iterator>
                                              </tbody>
                                            </table></td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.products" /> <s:text name="createprofile.and" /><s:text name="createprofile.services" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<table id="PSPList" border="0" cellpadding="0"
																	cellspacing="0" width="250">
																	<thead>
																		<tr>
																			<td colspan="2">
																				<b class="common-bold-text"><s:text name="createprofile.products" /><s:text name="createprofile.and" /><s:text name="createprofile.para13" /></b>																			</td>
																		</tr>
																	</thead>

																	<tbody></tbody>
																	<tfoot>
																		<tr>
																			<td valign="top">
																				<a href="javascript: addTextBox('PPSArea', 'PPS')">+</a>																			</td>
																			<td >
																				<table>
																					<tr>
																						<td><input type="text" class="textfield" id="newPSP"></td>
																					</tr>
																					<tr>
																						<td><div id='PPSArea'></div></td>
																					</tr>
																				</table>
																			</td>
																		</tr>
																	</tfoot>
																</table>

																<table id="PSRList" border="0" cellpadding="0"
																	cellspacing="0" width="250">
																	<thead>
																		<tr>
																			<td colspan="2">
																				<b class="common-bold-text"><s:text name="createprofile.products" /><s:text name="createprofile.and" /> <s:text name="createprofile.para14" /></b>																			</td>
																		</tr>
																	</thead>
																	<tbody></tbody>
																	<tfoot>
																		<tr>
																			<td valign="top">
																				<a href="javascript: addTextBox('PSRArea', 'PSR')">+</a>																			</td>
																			<td >
																				<table>
																					<tr>
																						<td><input type="text" class="textfield" id="newPSR" ></td>
																					</tr>
																					<tr>
																						<td><div id='PSRArea'></div></td>
																					</tr>
																				</table>
																			</td>
																		</tr>
																	</tfoot>
																</table>															</td>
															<td valign="top" width="20"></td>
															<td valign="top" class="common-text">
																<s:text name="createprofile.para15" />															</td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>

										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.brands" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<table id="BrandsList" border="0" cellpadding="0"
																	cellspacing="0" width="250">
																	<tbody></tbody>
																	<tfoot>
																		<tr>
																			<td valign="top">
																				<a href="javascript: addTextBox('BrandsArea', 'Brands')">+</a>																			</td>
																			<td >
																				<table>
																					<tr>
																						<td><input type="text" class="textfield" id="newBrands" ></td>
																					</tr>
																					<tr>
																						<td><div id='BrandsArea'></div></td>
																					</tr>
																				</table>
																			</td>
																		</tr>
																	</tfoot>
																</table>															</td>
															<td valign="top" width="20"></td>
															<td valign="top" class="common-text">
																<s:text name="createprofile.para16" />														</td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.employees" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:select theme="simple" headerKey="0" headerValue="-- Select No. Of Employees --" size="1" list="noOfEmployeesList" listKey="optionId" listValue="name" name="profileData.employees" cssClass="textfield"></s:select>
															</td>

															<td valign="top" width="20"></td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" class="search-text">
												<b><s:text name="createprofile.registration" /></b>											</td>
											<td>
												<s:textfield name="profileData.established" size="50" value=""
																	 cssClass="textfield" theme="simple" />
											</td>
										</tr>
										<tr>
											<td width="15%" align="right"  class="search-text">
												<b><s:text name="createprofile.legal" /></b>											</td>

											<td>
												<s:textfield name="profileData.representative" size="50" value=""
													cssClass="textfield" theme="simple" />
											</td>
										</tr>
										<tr>

											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.capital" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:select theme="simple" headerKey="0" headerValue="-- Select Registered Capital --" size="1" list="registeredCapitalList" listKey="optionId" listValue="name" name="profileData.capital" cssClass="textfield"></s:select>
															</td>
															<td valign="top" width="20"></td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.ownertype" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">

													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:select theme="simple" headerKey="0" headerValue="-- Select Owner Type --" size="1" list="ownerTypeList" listKey="optionId" listValue="name" name="profileData.ownerType" cssClass="textfield"></s:select>
															</td>
															<td valign="top" width="20"></td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.mainmarkets" /></b>											</td>
											<td valign="top">
												<table cellpadding="1" cellspacing="0" width="100%">
													<tbody>
													<s:iterator status="rowStatus" value="regionList" var="region">
														<s:if test="#rowStatus.index % 3 == 0">
															<tr>
														</s:if>
																<td width="33%" class="common-bold-text"><input class="cb" name="main_markets" value="%{categoryId}"
																	type="checkbox">
		                                                    	&nbsp;<s:property value="categoryName" /> </td>
														<s:if test="#rowStatus.count % 3 == 0 || #rowStatus.last">

														</s:if>
		                                              </s:iterator>
													</tbody>
												</table>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" class="search-text">
												<b><s:text name="createprofile.maincustomers" /></b>											</td>
											<td>
												<s:textfield name="profileData.customers" size="50" value=""
													 cssClass="textfield" theme="simple" />
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.annualsalesvolume" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:select theme="simple" headerKey="0" headerValue="-- Select Annual Sales Volume --" size="1" list="annualSalesVolumeList" listKey="optionId" listValue="name" name="profileData.salesVolume" cssClass="textfield"></s:select>
															</td>
															<td valign="top" width="20"></td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.percentage" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:select theme="simple" headerKey="0" headerValue="-- Select Export Percentage --" size="1" list="exportPercentageList" listKey="optionId" listValue="name" name="profileData.export" cssClass="textfield"></s:select>
															</td>
															<td valign="top" width="20"></td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.volume" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:select theme="simple" headerKey="0" headerValue="-- Select Annual Purchase Volume --" size="1" list="annualPurchaseVolumeList" listKey="optionId" listValue="name" name="profileData.purchaseVolume" cssClass="textfield"></s:select>
															</td>
															<td valign="top" width="20"></td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.factorysize" /></b>
											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:select theme="simple" headerKey="0" headerValue="-- Select Factory Size --" size="1" list="factorySizeList" listKey="optionId" listValue="name" name="profileData.factorySize" cssClass="textfield"></s:select>
															</td>
															<td valign="top" width="20"></td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.factorylocation" /></b>
											</td>
											<td>
												<s:textfield theme="simple" name="profileData.factoryLocation" size="50" value="" cssClass="textfield" />
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.lines" /></b>
											</td>
											<td>
												<s:textfield theme="simple" name="profileData.productionLines" size="50" value="" cssClass="textfield" />
											</td>
										</tr>
										<tr>

											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.Research" /> <s:text name="createprofile.and" /><s:text name="createprofile.staff" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:select theme="simple" headerKey="0" headerValue="-- Select Research & Development Staff --" size="1" list="researchAndDevelopmentStaffList" listKey="optionId" listValue="name" name="profileData.rdstaff" cssClass="textfield"></s:select>
															</td>
															<td valign="top" width="20"></td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.controlstaff" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">

													<tbody>
														<tr>
															<td valign="top" width="250">
																<s:select theme="simple" headerKey="0" headerValue="-- Select Quality Control Staff --" size="1" list="qualityControlStaffList" listKey="optionId" listValue="name" name="profileData.qcstaff" cssClass="textfield"></s:select>
															</td>
															<td valign="top" width="20"></td>
															<td valign="top"></td>
														</tr>
													</tbody>
												</table>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.certification" /></b>
											</td>
											<td valign="top">
												<table cellpadding="1" cellspacing="0" width="100%">
													<tbody>
													<s:iterator status="rowStatus" value="managementCertificationList" var="businessType">
														<s:if test="#rowStatus.index % 3 == 0">
															<tr>
														</s:if>
																<td width="33%" class="common-bold-text"><input class="cb" name="management_certification"
																	value="%{optionId}" type="checkbox">
		                                                    	&nbsp;<s:property value="name" /> </td>
														<s:if test="#rowStatus.count % 3 == 0 || #rowStatus.last">

														</s:if>
		                                            </s:iterator>

													</tbody>
												</table>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createprofile.contractmanufacturing" /></b>											</td>
											<td valign="top">
												<table cellpadding="1" cellspacing="0" width="100%">
													<tbody>
													<s:iterator status="rowStatus" value="contractManufacturingList" var="businessType">
														<s:if test="#rowStatus.index % 3 == 0">
															<tr>
														</s:if>
																<td width="33%" class="common-bold-text"><input class="cb" name="contract_manufacturing"
																	value="%{optionId}" type="checkbox">
		                                                    	&nbsp;<s:property value="name" /> </td>
														<s:if test="#rowStatus.count % 3 == 0 || #rowStatus.last">
														</s:if>
		                                            </s:iterator>

													</tbody>
												</table>
											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<a name="File"></a><b><s:text name="shop.uploadfile" /></b>											</td>
											<td valign="top">
												<table cellpadding="4" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" class="common-text">
																<b><s:text name="shop.note" /></b>
																<ul>
																	<li>
																		<s:text name="shop.firstimage" />																</li>
																	<li>
																		<s:text name="shop.insertmax" />
																		<b><s:property value="#attr.listingOptions.numberOfFilesAllowedToUpload" /></b> <s:text name="shop.file" />																	</li>
																	<li>
																		<s:text name="shop.fileupload" />
																		<b><s:property value="#attr.listingOptions.maximumUploadFileSize" /></b> <s:text name="shop.kbyte" />																	</li>
																	<li>
																		<s:text name="shop.combindfile" />
																		<b><s:property value="#attr.listingOptions.maximumUploadTotalFilesSize" /></b> <s:text name="shop.kbyte" />																</li>
																	<li>
																		<s:text name="shop.filetype" />
																		<b><s:property value="#attr.listingOptions.filesExtensionsAllowed" /></b>.																	</li>
																</ul>

																<b><s:text name="shop.uploadfile" /></b>
																<ol>
																	<li>
																		<s:text name="shop.click" />
																		<b><s:text name="shop.browse" /></b><s:text name="shop.button" />
																																</li>
																	<li>
																		<s:text name="shop.click" />
																		<b><s:text name="createAdvertise.para28" /></b><s:text name="createAdvertise.para29" />																	</li>
																	<li>
																		<s:text name="createAdvertise.para30" />																	</li>
																	<li>
																		<s:text name="createAdvertise.para31" />																</li>
																</ol>															</td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>

										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createAdvertise.file" /></b>
											</td>
											<td valign="top">
												<table cellpadding="4" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<input type="file" name="upload" />
																<s:submit action="uploadProfileFile" value="Upload file" />
															</td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>

															<td valign="top" class="common-text">
																<b class="common-bold-text"><font color="red"><s:text name="shop.manage" /></font> </b>
																<br>
																<table border="0" cellpadding="2" cellspacing="1"
																	width="100%">
																	<tbody>
																		<tr>
																			<!--<td width="40%"  align="center">File</td>-->
																			<td align="center" class="grid-header-bg grid-header-text">
																				<s:text name="createAdvertise.size" />																			</td>
																			<td align="center" class="grid-header-bg grid-header-text">
																				<s:text name="listfee.tableheading8" />																			</td>

																			<td align="center" class="grid-header-bg grid-header-text">
																				<s:text name="createAdvertise.thumbnail" />																			</td>
																			<td align="center" class="grid-header-bg grid-header-text">
																				<s:text name="createAdvertise.gallerie" />																			</td>
																			<td align="center" class="grid-header-bg grid-header-text">
																				<s:text name="createAdvertise.preview" />																		</td>
																		</tr>
																	<s:set var="total" value="0" />
																						<s:iterator value="uploadedFiles" status="raw">
																							<s:set var="total" value="%{#total + size}" />
																							<tr>
																								<td align="center" class="grid-bg grid-header-text">
																									<s:property value="size" />
																								</td>
																								<td align="center" class="grid-bg grid-header-text">
																									<a href="uploadFile.htm?deleteAction=<s:property value="#raw.index" />">Delete</a>
																								</td>
																								<td align="center" class="grid-bg grid-header-text">
																									<input type="radio" name="thumbnailId" value="<s:property value="#raw.index" />" />
																								</td>
																								<td align="center" class="grid-bg grid-header-text">
																									<input type="radio" name="gallaryId" value="<s:property value="#raw.index" />" />
																								</td>
																								<td align="center" class="grid-bg grid-header-text">
																									<s:if test="contentType == 'application/msword'">
																										<img src="images/doc.jpeg" height="20" width="20" />
																									</s:if>
																									<s:elseif test="contentType == 'text/plain'">
																										<img src="images/txt.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:elseif test="contentType == 'application/pdf'">
																										<img src="images/pdf.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:elseif test="contentType == 'audio/x-wav'">
																										<img src="images/wav.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:elseif test="contentType == 'audio/midi'">
																										<img src="images/mid.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:elseif test="contentType == 'video/quicktime'">
																										<img src="images/mov.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:elseif test="contentType == 'video/msvideo'">
																										<img src="images/avi.jpeg" height="20" width="20" />
																									</s:elseif>
																									<s:else>
																										<img src="servlet/ImageServlet?dto=path&id=1&name=<s:property value="name" />" height="20" width="20" />
																									</s:else>
																								</td>
																							</tr>
																						</s:iterator>
																	</tbody>
																</table>
												 <s:if test="uploadedFiles != null">
												<s:text name="addSellAuctionItem.menu.manageuploadfile.stats">
													<s:param name="value" value="uploadedFiles.size" />
													<s:param name="value" value="%{#total / 1024}" />
													<s:param name="value" value="%{fileFees}" />
												</s:text>
												</s:if>
												<s:else>
													<s:text name="addSellAuctionItem.menu.manageuploadfile.stats">
														<s:param name="value" value="0" />
														<s:param name="value" value="0" />
														<s:param name="value" value="0" />
													</s:text>
												</s:else>
											</td>
										</tr>
										<s:if test="uploadedFiles != null && uploadedFiles.size > 0">
											<tr>
							                  	<td class="form_lable" valign="top" align="right"> </td>
							                  	<td valign="top" class="common-text"><table cellpadding="4" cellspacing="0">
							                    	<tbody><tr>
								                      <td valign="top" width="250"><table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="50%"><input class="rb" name="items.mediaShow" value="4" type="radio">Static</td><td valign="top" width="50%"><input class="rb" name="items.mediaShow" value="2" type="radio">Slide show</td></tr></tbody></table></td>
								                      <td valign="top" width="20"> </td>
								                      <td valign="top"><s:if test="#attr.optionsFees[15].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[15].companyProfile" /></font></s:if> Slide show</td>
							                    	</tr>
							                    	<tr>
							                      		<td valign="top">How would you like to show your files</td>
							                      		<td colspan="2" valign="top"> </td>
							                    	</tr></tbody>
							                    </table></td>
							                </tr>
							                <tr>
							                  	<td class="common-text" valign="top" align="right"><b>Gallery:</b></td>
							                  	<td valign="top"><table cellpadding="4" cellspacing="0">
							                    	<tbody><tr><td valign="top" width="278"><input class="cb" name="items.gallery" value="1" type="checkbox"></td><td valign="top" class="common-text"><s:if test="#attr.optionsFees[2].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[2].companyProfile" /></font></s:if> Features your offer within the Gallery. If this option was set before, it can not be canceled.</td></tr>
							                  		</tbody></table></td>
							                </tr>
							                <tr>
							                  	<td class="common-text" valign="top" align="right"><b>Gallery featured:</b></td>
							                  	<td valign="top"><table cellpadding="4" cellspacing="0">
							                    <tbody><tr><td valign="top" width="278"><input class="cb" name="items.galleryFeatured" value="1" type="checkbox"></td><td valign="top" class="common-text"><s:if test="#attr.optionsFees[3].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[3].companyProfile" /></font></s:if> Your listing will appear in the special “Gallery Featured” page linked to the general Picture Gallery listing</td></tr>
							                  	</tbody></table></td>
							                </tr>
							                <tr>
							                  	<td class="common-text" valign="top" align="right"><b><s:text name="Gallery_plus_label" /></b></td>
							                  	<td valign="top"><table cellpadding="4" cellspacing="0">
							                    <tbody><tr><td valign="top" width="278"><input class="cb" name="items.galleryPlus" value="1" type="checkbox"></td><td valign="top" class="common-text"><s:if test="#attr.optionsFees[4].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[4].companyProfile" /></font></s:if> <s:text name="gallery_plus_desc" /></td></tr>
							                  	</tbody></table></td>
							                </tr>
										</s:if>
										<!--Files_Features-->
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createAdvertise.duration" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="250">
																<select size="1" name="items.duration" class="textfield">
																	<option value="30" selected="selected">
																		1 Month																	</option>
																	<option value="60">
																		2 Months																	</option>
																	<option value="90">
																		3 Months																	</option>
																	<option value="120">
																		4 Months																	</option>
																	<option value="150">
																		5 Months																	</option>
																	<option value="180">
																		6 Months																	</option>
																	<option value="210">
																		7 Months																	</option>
																	<option value="240">
																		8 Months																	</option>
																	<option value="270">
																		9 Months																	</option>
																	<option value="300">
																		10 Months																	</option>
																	<option value="330">
																		11 Months																	</option>
																	<option value="360">
																		12 Months																	</option>
															  </select>															</td>

															<td valign="top" width="20">
																<font color="green" size="2"> *</font>															</td>
															<td valign="top" class="common-text">
																<s:text name="createAdvertise.para32" />
																<br>
																<s:text name="createAdvertise.para33" />															</td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>

											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createAdvertise.featured" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="274">
																<s:checkbox name="items.homePageFeatured" value="1" theme="simple" />
															</td>
															<td valign="top" class="common-text">
																<s:if test="#attr.optionsFees[0].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[0].companyProfile" /></font></s:if> <s:text name="createAdvertise.para35" />										</td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createAdvertise.cfeatured" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="274">
																<s:checkbox name="items.categoryFeatured" value="1" theme="simple" />
															</td>
															<td valign="top" class="common-text">
																<s:if test="#attr.optionsFees[1].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[1].companyProfile" /></font></s:if> <s:text name="createAdvertise.para36" />																</td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createAdvertise.framed" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td valign="top" width="274">
																<s:checkbox name="items.framed" value="1" theme="simple" />															</td>

															<td valign="top" class="common-text">
																<s:if test="#attr.optionsFees[21].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[21].companyProfile" /></font></s:if> <s:text name="createAdvertise.para37" />					</td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
										<tr>
											<td width="15%" align="right" valign="top" class="search-text">
												<b><s:text name="createAdvertise.crosspromotion" /></b>											</td>
											<td valign="top">
												<table cellpadding="2" cellspacing="0" width="100%">

													<tbody>
														<tr>
															<td valign="top" width="274">
																<input class="cb" name="items.crossPromotion" value="3"
																	type="radio">
																<s:text name="shop.item1" />
																<s:if test="#attr.optionsFees[17].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[17].companyProfile" /></font></s:if>															</td>
															<td rowspan="3" valign="top" class="common-text">
																<s:text name="shop.advertise" />														</td>
														</tr>
														<tr>
															<td valign="top" width="274">
																<input class="cb" name="items.crossPromotion" value="6"
																	type="radio">
																<s:text name="shop.item2" />
																<s:if test="#attr.optionsFees[18].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[18].companyProfile" /></font></s:if>															</td>
														</tr>
														<tr>
															<td valign="top" width="274">
																<input class="cb" name="items.crossPromotion" value="9"
																	type="radio">
																<s:text name="shop.item3" />
															<s:if test="#attr.optionsFees[19].companyProfile != 0"><font color="red"><s:property value="#attr.generalOptions.currency.currency" /> <s:property value="#attr.optionsFees[19].companyProfile" /></font></s:if></td>
														</tr>
													</tbody>
												</table>											</td>
										</tr>
									</tbody>
							  </table>

								<table cellpadding="0" cellspacing="0">

									<tbody>
										<tr>
											<td valign="top">
												<p align="justify" class="common-text">
													<b><s:text name="shop.disclaimer" /></b>
													<br>
													<s:property value="#attr.configuration.siteName" escape="false" /> <s:text name="shop.disclaimer1" />
													<s:property value="#attr.configuration.siteName" escape="false" /> <s:text name="shop.disclaimer2" />
													<s:property value="#attr.configuration.siteName" escape="false" /> <s:text name="shop.disclaimer3" />
													<s:property value="#attr.configuration.siteName" escape="false" /> <s:text name="shop.disclaimer4" />
											  </p>

											</td>
										</tr>

										<tr>
											<td align="center">
											<table border="0" cellspacing="0" cellpadding="0">
																<tr>
																	<td class="btn-grey-left1"></td>
																	<td class="btn-grey-middle1 ">
																	<s:submit name="Submit" value="Submit" action="previewProfile" cssClass="submit-btn-common" theme="simple" />
																	</td>
																	<td class="btn-grey-right1"></td>
																	<td class="btn-grey-left1"></td>
																	<td class="btn-grey-middle1 ">
																		<input type="button" value="Reset" class="submit-btn-common">
																	</td>
																	<td class="btn-grey-right1"></td>
																</tr>
															</table>
											</td>
										</tr>

									</tbody>
								</table>
							</td>
						</tr>

					</tbody>
				</table>
			</td>
		</tr>
	</tbody>
</table></div></td></tr></tbody></table>
</s:form>
<s:if test="items.description == null || items.description == ''">
<script type="text/javascript">
	document.getElementById('items.description').value =='';
</script>
</s:if>
</body>
</html>